import Vue from 'vue'
import App from './App.vue'
// import App from './02.provideApp.vue'
// import App from './05.parent-children-root App.vue'
import router from './router'
import store from './store'

//1.引入axios包
import axios from 'axios'

/*全局自定义指令*/
Vue.directive('read', {
  // inserted (dom元素, 目标对象)
  inserted (ele, obj) {
    console.log(ele, obj.value, '自定义指令read');
    ele.focus()//获取对象,调用方法
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
